Xbasic

THREAD_ENUM Function

Syntax

Thread_List as C = THREAD_ENUM(C format)

Arguments

formatCharacter

Format for the thread list. (N=name,I=thread #)

Returns

Thread_ListCharacter

Returns a CR-LF delimited list of all running threads. "Main" will always be listed as this is the main thread that runs the application.

Description

Get information about Xbasic threads.

Discussion

For internal use only. The THREAD_ENUM() function returns a list of the names of running threads.

No user interface related commands are allowed in a thread. Using any command that attempts to create or manipulate any type of user interface from within a thread will cause Alpha Anywhere to hang. Examples of such invalid functions include debug() , ui_*, StatusBar.*, ControlPanel.*, trace.*, etc.

Limitations

Desktop applications only.

See Also